{extend name="../../admin/view/main"}

{block name="button"}
{/block}

{block name="content"}
<div class="layui-tab layui-tab-card">
    <ul class="layui-tab-title notselect">
        <li class="layui-this">晒单管理</li>
    </ul>
    <div class="layui-tab-content">
        {include file='comment/index_search'}
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th class='nowrap'>中奖记录Id</th>
                <th class='nowrap'>期号</th>
                <th class='nowrap'>用户</th>
                <th class='nowrap'>参与人次</th>
                <th class='nowrap'>评论内容</th>
                <th class='nowrap'>评论时间</th>
                <th class='nowrap'>操作</th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
                </td>
                <td>{$vo.tesco_record_id}</td>
                <td>{$vo.lucky_draw_id}</td>
                <td class="nowrap">{$vo.user_phone}-{$vo.username?$vo.username:$vo.nickname}</td>
                <td>{$vo.join_number}</td>
                <td>{$vo.comment}</td>
                <td>{$vo.create_time}</td>
                <td>
                    <!--{if auth("comment/add")}-->
                    <a class="layui-btn layui-btn-sm layui-btn-primary" data-modal="{:url('comment/detail')}?id={$vo.id}" data-title="详细">详细</a>
                    <!--{/if}-->
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
</div>
{/block}
